<?php


namespace app\validate;


use think\Validate;

class inLogValidate extends Validate
{

    protected $rule = [
        'commodity_id' => 'require',
        'in_num' => 'number|gt:0',
        "in_price"=>"require|number|gt:0"
    ];

    protected $message = [
        'commodity_id.require' => '商品Id不能为空',
        'in_num.number' => '数量只能为数字',
        'in_num.gt' => '数量需要大于零',
    ];

}